package com.ry.ryshopweb.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderItem {
    private String orderId;
    private Long userId;
    private String username;
    private Address address;
    private List<Item> item;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date created;
    private Long total;
}
